* Save data of model of importing for Figure 8
* Source data "microdata_M" is generated by Replicate_2.m in MATLAB

import delimited using "QuantitativeModel/temp/microdata_M", clear

ren v1 omega
ren v2 omega1
ren v3 sD

gen growth = (omega1-omega)/omega * 100
gen sI = 1-sD

* Save data:

binscatter growth sI if sI>0, n(80) xtitle(Initial Import Share) ytitle(Market Share Growth) graphregion(color(white)) line(qfit) savedata("QuantitativeModel/temp/F8_global") replace
